<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<title>Login</title>
<link href="<c:url value='/resources/plugins/bootstrap/css/bootstrap.css'/>" rel="stylesheet" />
<link href="<c:url value='/resources/css/login.css'/>" rel="stylesheet" />

<script type="text/javascript">
	/*function refreshImage() {
		document.getElementById("captchaImage").setAttribute("src",
				"${pageContext.request.contextPath}/Kaptcha.jpg?" + Math.round(Math.random() * 10000));
	}*/
</script>
</head>
<body>
	<nav class="navbar navbar-default navbar-custom" role="navigation">
		<div class="navbar-header">
			<a class="navbar-brand" href="#" style="color:#ffffff;">上善</a>
		</div>
	</nav>

	<div class="container">
		<c:if test="${message!=null}">
			<div class="alert alert-danger" role="alert">${message}</div>
		</c:if>
		<form class="form-signin" method="post" action="${pageContext.request.contextPath}/plantform/login">
			<h2 class="form-signin-heading">LOGIN</h2>
			<input  name="username" class="form-control" placeholder="用户名" required autofocus style="margin-bottom: 5px;">
			<input type="password" name="password" class="form-control" placeholder="密码" required style="margin-bottom: 5px;">
			<button class="btn btn-lg btn-primary btn-block" style="margin-top: 90px;" type="submit">登录</button>
			<%--<input type="text" name="code" class="form-control" placeholder="验证码" required style="margin-bottom: 5px;">

			<div>
				<div style="float: left; margin-top: 10px;">
					<label class="checkbox" style="margin-left: 20px;"> <input type="checkbox" value="remember-me"> 记住我
					</label>
				</div>
				<div style="float: right">
					<img src="${pageContext.request.contextPath}/Kaptcha.jpg" id="captchaImage" onclick="javascript:refreshImage()" />
				</div>
			</div>--%>


		</form>
	</div>


</body>
</html>